<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="__STATIC__/admin/hui/lib/html5shiv.js"></script>
<script type="text/javascript" src="__STATIC__/admin/hui/lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/hui/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/hui/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/hui/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/hui/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/hui/static/h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="__STATIC__/admin/hui/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>添加商家 - 商家管理 - H-ui.admin v3.1</title>
<meta name="keywords" content="">
<meta name="description" content="">
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal" id="form-bis-add">
        <input type="hidden" name="id" value="{$bis.id}"/>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>子商编：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="{$bis.merchant_id}" placeholder="" id="merchant_id" name="merchant_id">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>商户名称：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="{$bis.name}" placeholder="" id="name" name="name">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>余额（元）：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="{$bis.amount}" placeholder="" id="amount" name="amount">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>冻结余额（元）：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="{$bis.djamount}" placeholder="" id="djamount" name="djamount">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>预充手续费：</label>
		<div class="formControls col-xs-8 col-sm-9 skin-minimal">
			<div class="radio-box">
				<input type="radio" id="status-1" name="is_prepay" value="1" {if $bis.is_prepay == 1}checked{/if}>
				<label for="status-1">启用</label>
			</div>
			<div class="radio-box">
				<input type="radio" id="status-2" name="is_prepay" value="0"{if $bis.is_prepay == 0}checked{/if}>
				<label for="status-2">停用</label>
			</div>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>预充手续费（元）：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="{$bis.mchnt_pre_fee}" placeholder="" id="mchnt_pre_fee" name="mchnt_pre_fee">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>通道归属：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="{$bis.platform_name}" placeholder="" id="platform_name" name="platform_name">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>父商编：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="{$bis.parent_merchant_id}" placeholder="" id="parent_merchant_id" name="parent_merchant_id">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>一键支付费率（%）：</label>
		<div class="formControls col-xs-2 col-sm-2">
			<input type="text" class="input-text" value="{$bis.total_yjzf_rate}" placeholder="" id="total_yjzf_rate" name="total_yjzf_rate" disabled>
		</div>
                <label class="form-label col-xs-1 col-sm-2" style="padding-left: 0;padding-right: 0;">含： <span class="c-red">*</span>平台固定：</label>
		<div class="formControls col-xs-2 col-sm-2">
			<input type="text" class="input-text" value="{$bis.yjzf_rate}" placeholder="" id="yjzf_rate" name="yjzf_rate" disabled>
		</div>
                <label class="form-label col-xs-1 col-sm-1" style="padding-left: 0;padding-right: 0;"><span class="c-red">*</span>cy附加：</label>
		<div class="formControls col-xs-2 col-sm-2">
			<input type="text" class="input-text" value="{$bis.mchnt_yjzf_rate}" id="mchnt_yjzf_rate" name="mchnt_yjzf_rate">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>b2c网银费率（%）：</label>
		<div class="formControls col-xs-2 col-sm-2">
			<input type="text" class="input-text" value="{$bis.total_netb2c_rate}" placeholder="" id="total_netb2c_rate" name="total_netb2c_rate" disabled>
		</div>
                <label class="form-label col-xs-1 col-sm-2" style="padding-left: 0;padding-right: 0;">含： <span class="c-red">*</span>平台固定：</label>
		<div class="formControls col-xs-2 col-sm-2">
			<input type="text" class="input-text" value="{$bis.netb2c_rate}" placeholder="" id="netb2c_rate" name="netb2c_rate" disabled>
		</div>
                <label class="form-label col-xs-1 col-sm-1" style="padding-left: 0;padding-right: 0;"><span class="c-red">*</span>cy附加：</label>
		<div class="formControls col-xs-2 col-sm-2">
			<input type="text" class="input-text" value="{$bis.mchnt_netb2c_rate}" id="mchnt_netb2c_rate" name="mchnt_netb2c_rate">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>代付代发费用（元/笔）：</label>
		<div class="formControls col-xs-2 col-sm-2">
			<input type="text" class="input-text" value="{$bis.total_daifu_fee}" placeholder="" id="total_daifu_fee" name="total_daifu_fee" disabled>
		</div>
                <label class="form-label col-xs-1 col-sm-2" style="padding-left: 0;padding-right: 0;">含： <span class="c-red">*</span>平台固定：</label>
		<div class="formControls col-xs-2 col-sm-2">
			<input type="text" class="input-text" value="{$bis.daifu_fee}" placeholder="" id="daifu_fee" name="daifu_fee" disabled>
		</div>
                <label class="form-label col-xs-1 col-sm-1" style="padding-left: 0;padding-right: 0;"><span class="c-red">*</span>cy附加：</label>
		<div class="formControls col-xs-2 col-sm-2">
			<input type="text" class="input-text" value="{$bis.mchnt_daifu_fee}" id="mchnt_daifu_fee" name="mchnt_daifu_fee">
		</div>
	</div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span> 交易签名密钥：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" value="{$bis.md5key}" placeholder="" id="md5key" name="md5key">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span> 代付签名密钥：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" value="{$bis.daifumd5key}" placeholder="" id="daifumd5key" name="daifumd5key">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span> 代付密码：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" value="{$bis.daifupwd}" placeholder="" id="daifupwd" name="daifupwd">
            </div>
        </div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>手机：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="{$bis.tel}" placeholder="" id="tel" name="tel">
		</div>
	</div>
        {if !!$bis.create_time}
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>注册时间：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="{$bis.create_time|date='Y-m-d H:i:s',###}" placeholder="" id="create_time" disabled>
		</div>
	</div>
        {/if}
	<div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">状态：</label>
            <div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
                    <select class="select" name="status" size="1">
                        <option value="0" {if $bis.status == 0}selected{/if}>未认证</option>
                        <option value="1" {if $bis.status == 1}selected{/if}>认证成功</option>
                        <option value="2" {if $bis.status == 2}selected{/if}>认证失败</option>
                    </select>
                </span> </div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
		</div>
	</div>
    </form>
</article>

<!--_footer 作为公共模版分离出去--> 
<script type="text/javascript" src="__STATIC__/admin/hui/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="__STATIC__/admin/hui/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__STATIC__/admin/hui/static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="__STATIC__/admin/hui/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__STATIC__/admin/hui/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="__STATIC__/admin/hui/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="__STATIC__/admin/hui/lib/jquery.validation/1.14.0/messages_zh.js"></script> 
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$("#form-bis-add").validate({
		rules:{
			name:{
				required:true,
				minlength:4,
				maxlength:16
			},
			tel:{
				required:true,
				isPhone:true
			},
			status:{
				required:true
			}
		},
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
			$(form).ajaxSubmit({
				type: 'post',
				url: "{:url('bis/bisAdd')}" ,
				success: function(data){
//                                    alert(data);
					layer.msg(data,{icon:1,time:1000},function(){
                                            var index = parent.layer.getFrameIndex(window.name);
//                                            parent.$('.btn-refresh').click();
                                            parent.location.reload();
                                            parent.layer.close(index);                                            
                                        });
				},
                                error: function(XmlHttpRequest, textStatus, errorThrown){
					layer.msg('error!',{icon:1,time:1000});
				}
			});
		}
	});
});

$("#mchnt_yjzf_rate").change(function(){
  var a = Number($(this).val());
  var b = Number($("#yjzf_rate").val());
  $("#total_yjzf_rate").val(a + b);
});
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
